package com.gper.edu.vip.designer.simple.responsibility;

/**
 * @Author: ellis.guan
 * @Description:
 * @Date: 2020/2/28 22:14
 * @Version: 1.0
 */
public class JavaRecordCourse implements StudyCourse {
    private String id;
    private String name;
    private Double price;

    public JavaRecordCourse(String id, String name, Double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    @Override
    public void forward() {
        System.out.println(name+"录播课程，可以快进");
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public Double getPrice() {
        return price;
    }
}
